<?php
// 

// 

// 

// 

// 

// 
class User_commisionModel extends  RelationModel{


	protected $_link = array(
	   'user'=> array(  
          'mapping_type'=>BELONGS_TO,
          'class_name'=>'user',
          'foreign_key'=>'uid',
          'as_fields'=>'username,email,id,time',
	  ),
	  
	  'commision'=> array(  
          'mapping_type'=>BELONGS_TO,
          'class_name'=>'commision',
          'foreign_key'=>'group_id',
          'as_fields'=>'pid,catpid,name,level,ratio,status',
	  ),


    );
	

	
}

?>
